package com.education.welco.mapper;

import com.education.welco.pojo.LPaperQueRelation;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 试卷和试题关联 数据层
 *
 * @author d
 * @date 2020-06-11
 */
@Repository
public interface LPaperQueRelationMapper {

    /**
     * 查询试卷和试题关联信息
     *
     * @param paperId 试卷和试题关联ID
     * @return 试卷和试题关联信息
     */
    public LPaperQueRelation selectLPaperQueRelationById(Integer paperId);

    /**
     * 查询试卷和试题关联列表
     *
     * @param lPaperQueRelation 试卷和试题关联信息
     * @return 试卷和试题关联集合
     */
    public List<LPaperQueRelation> selectLPaperQueRelationList(LPaperQueRelation lPaperQueRelation);

    /**
     * 新增试卷和试题关联
     *
     * @param lPaperQueRelation 试卷和试题关联信息
     * @return 结果
     */
    public int insertLPaperQueRelation(LPaperQueRelation lPaperQueRelation);

    /**
     * 修改试卷和试题关联
     *
     * @param lPaperQueRelation 试卷和试题关联信息
     * @return 结果
     */
    public int updateLPaperQueRelation(LPaperQueRelation lPaperQueRelation);

    /**
     * 删除试卷和试题关联
     *
     * @param paperId 试卷和试题关联ID
     * @return 结果
     */
    public int deleteLPaperQueRelationById(Integer paperId);

    /**
     * 批量删除试卷和试题关联
     *
     * @param paperIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteLPaperQueRelationByIds(String[] paperIds);
}